//
//  VoteHelper.h
//  meiyinxiang
//
//  Created by 媒印象 on 06/12/2017.
//  Copyright © 2017 hbjApple. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^uploadImgBlock)(BOOL,NSString *);
@interface VoteHelper : NSObject
+ (VoteHelper *)shared;
- (NSString *)verifyVoteEnableWithPhoneNum:(NSString *)phoneNum
                                      name:(NSString *)name
                                       age:(NSString *)age
                                    imgurl:(NSString *)imageUrl;
- (void)upLoadImg:(UIImage *)img
       completion:(uploadImgBlock)completion;

/**
 报名接口

 @param phoneNum 手机号码
 @param name 姓名
 @param age 年龄
 @param imgurl 上传的照片url
 @param completion 返回结果
 */
- (void)applyActivityWithPhoneNum:(NSString *)phoneNum
                             name:(NSString *)name
                              age:(NSString *)age
                           imgurl:(NSString *)imgurl
                       completion:(uploadImgBlock)completion;

/**
 顶部高度

 @return
 */
- (CGFloat)getTopLayoutConsWithdiffrentDivice;
@end
